package de.definitives.creoleconverter.document;

import de.definitives.creoleconverter.renderer.Renderer;

/**
 * Represents an image.
 *
 * @author Christian Helmbold
 */
public class Image implements Component {
    
    private String filename;

    public Image(String filename) {
        this.filename = filename;
    }

    public String getFilename(){
        return filename;
    }

    public void renderWith(Renderer renderer) {
        renderer.render(this);
    }

}
